package com.shruijin.wy.collection;

import java.util.HashMap;
import java.util.Hashtable;

public class HashTableDemo {

    private  static Hashtable  hashtable = new Hashtable();
    private static HashMap map = new HashMap();

    public static void main(String args[]){
        hashtable.put("key","one");
        hashtable.put("pass","doit!");

        map.put("key","two!");
        map.put("key","two");
        map.put(null,"yes ");
        System.out.println(map.get("key"));

    }
}
